﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class DeliveryRobot:Robot
    {
        public int hours;

        public DeliveryRobot(string name, int hours) : base(name)
        {
            this.hours =hours;
        }

        public override void Working()
        {
            Console.WriteLine("我是{0}机器人，我工作{}小时",this.Name,this.hours);
        }
    }
}
